Deep learning of representations for unsupervised and transfer learning farshidfarhat